﻿@model IEnumerable<AgendaDoEstudante.Models.Item>

@{
    ViewBag.Title = "Index";
}


<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Nome)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Feito)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ListaId)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nome)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Feito)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ListaId)
        </td>
        <td>
            <ul class="phrp">
            @Html.ActionLink("Edit", "Edit", new { id=item.ItemId })           
            @Html.ActionLink("Details", "Details", new { id=item.ItemId })
            @Html.ActionLink("Delete", "Delete", new { id=item.ItemId })
            </ul>
        </td>
    </tr>
}

</table>
